package com.javasm.adminapi.module.system.controller;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.javasm.adminapi.common.R;
import com.javasm.adminapi.module.system.dto.PermissionQueryDTO;
import com.javasm.adminapi.module.system.service.RoleService;
import com.javasm.adminapi.module.system.vo.SysPermissionVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 系统权限表(SysPermission)表控制层
 *
 * @author makejava
 * @since 2025-10-20 20:21:17
 */
@RestController
@RequestMapping("/sysPermission")
public class SysPermissionController {
    @Resource
    private RoleService roleService;

    @GetMapping("/page")
    public R page(PermissionQueryDTO page) {
        return R.ok(roleService.pageSys(page));
    }


}

